package com.ls.pattern.behavior.chain_responsibility;

//校长
public class SchoolMasterApprover extends Approver{


    public SchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() > 30000) {
            System.out.println("校长处理");
        } else {
            nextApprover.processRequest(request);
        }
    }
}
